home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 18129 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: inforamp.net!usenet
  2. From: rmorin@inforamp.net (Randy Charles Morin)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Template implementation - code size efficiency..
  5. Date: Fri, 19 Apr 1996 03:23:17 GMT
  6. Organization: InfoRamp Inc., Toronto, Ontario (416) 363-9100
  7. Message-ID: <4l6meq$ah3@sam.inforamp.net>
  8. References: <317417FA.5607@zurich.ibm.com>
  9. NNTP-Posting-Host: ts47-12.tor.istar.ca
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. Keith Whittingham <wgk@zurich.ibm.com> wrote:
  13.  
  14. >Is there a rule of thumb regarding the code size overhead 
  15. >for the use of a given template... Does
  16. >   Array<unsigned int> aui;
  17. >   Array<signed int> asi;
  18. >produce twice as much executable code as...
  19. >   Array<signed int> asi;
  20. >Can the compiler optimise...
  21.  
  22. My understanding is that you do get twice the code and
  23. you can't optimize it.  
  24.  
  25. For a good book on templates I recommend "STL Tutorial and Reference
  26. Guide, C++ Programming with the Standard Template Libray" by David R.
  27. Musser and Atul Saini, Addison Wesley.
  28.  
  29.  
  30. Agrivar
  31.  
  32. aka Randy Charles Morin,
  33. MiddleWorld SoftWare,
  34. Satisfying Your Bit and Bytes,
  35. Canada 1-800-363-3780 
  36. Other  1-905-279-2087
  37. eMail  rmorin@inforamp.net
  38.  
  39.